Optimal. Leaf size=161 \[ \frac {C \tanh ^{-1}(\sin (c+d x))}{a^4 d}-\frac {(8 A-55 C) \tan (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}+\frac {(16 A-215 C) \tan (c+d x)}{105 a^4 d (1+\sec (c+d x))}-\frac {(A+C) \sec ^3(c+d x) \tan (c+d x)}{7 d (a+a \sec (c+d x))^4}+\frac {2 (2 A-5 C) \sec ^2(c+d x) \tan (c+d x)}{35 a d (a+a \sec (c+d x))^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.32, antiderivative size = 161, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4170, 4104,
4093, 4083, 3855, 3879} \begin {gather*} \frac {(16 A-215 C) \tan (c+d x)}{105 a^4 d (\sec (c+d x)+1)}-\frac {(8 A-55 C) \tan (c+d x)}{105 a^4 d (\sec (c+d x)+1)^2}+\frac {C \tanh ^{-1}(\sin (c+d x))}{a^4 d}-\frac {(A+C) \tan (c+d x) \sec ^3(c+d x)}{7 d (a \sec (c+d x)+a)^4}+\frac {2 (2 A-5 C) \tan (c+d x) \sec ^2(c+d x)}{35 a d (a \sec (c+d x)+a)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3855
Rule 3879
Rule 4083
Rule 4093
Rule 4104
Rule 4170
Rubi steps
\begin {align*} \int \frac {\sec ^3(c+d x) \left (A+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^4} \, dx &=-\frac {(A+C) \sec ^3(c+d x) \tan (c+d x)}{7 d (a+a \sec (c+d x))^4}-\frac {\int \frac {\sec ^3(c+d x) (-a (4 A-3 C)-7 a C \sec (c+d x))}{(a+a \sec (c+d x))^3} \, dx}{7 a^2}\\ &=-\frac {(A+C) \sec ^3(c+d x) \tan (c+d x)}{7 d (a+a \sec (c+d x))^4}+\frac {2 (2 A-5 C) \sec ^2(c+d x) \tan (c+d x)}{35 a d (a+a \sec (c+d x))^3}-\frac {\int \frac {\sec ^2(c+d x) \left (-4 a^2 (2 A-5 C)-35 a^2 C \sec (c+d x)\right )}{(a+a \sec (c+d x))^2} \, dx}{35 a^4}\\ &=-\frac {(8 A-55 C) \tan (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}-\frac {(A+C) \sec ^3(c+d x) \tan (c+d x)}{7 d (a+a \sec (c+d x))^4}+\frac {2 (2 A-5 C) \sec ^2(c+d x) \tan (c+d x)}{35 a d (a+a \sec (c+d x))^3}+\frac {\int \frac {\sec (c+d x) \left (2 a^3 (8 A-55 C)+105 a^3 C \sec (c+d x)\right )}{a+a \sec (c+d x)} \, dx}{105 a^6}\\ &=-\frac {(8 A-55 C) \tan (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}-\frac {(A+C) \sec ^3(c+d x) \tan (c+d x)}{7 d (a+a \sec (c+d x))^4}+\frac {2 (2 A-5 C) \sec ^2(c+d x) \tan (c+d x)}{35 a d (a+a \sec (c+d x))^3}+\frac {(16 A-215 C) \int \frac {\sec (c+d x)}{a+a \sec (c+d x)} \, dx}{105 a^3}+\frac {C \int \sec (c+d x) \, dx}{a^4}\\ &=\frac {C \tanh ^{-1}(\sin (c+d x))}{a^4 d}-\frac {(8 A-55 C) \tan (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}-\frac {(A+C) \sec ^3(c+d x) \tan (c+d x)}{7 d (a+a \sec (c+d x))^4}+\frac {2 (2 A-5 C) \sec ^2(c+d x) \tan (c+d x)}{35 a d (a+a \sec (c+d x))^3}+\frac {(16 A-215 C) \tan (c+d x)}{105 d \left (a^4+a^4 \sec (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.28, size = 283, normalized size = 1.76 \begin {gather*} -\frac {\cos \left (\frac {1}{2} (c+d x)\right ) \sec ^2(c+d x) \left (A+C \sec ^2(c+d x)\right ) \left (6720 C \cos ^7\left (\frac {1}{2} (c+d x)\right ) \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )-\sec \left (\frac {c}{2}\right ) \left (70 (2 A-49 C) \sin \left (\frac {d x}{2}\right )-70 (2 A-31 C) \sin \left (c+\frac {d x}{2}\right )+168 A \sin \left (c+\frac {3 d x}{2}\right )-2625 C \sin \left (c+\frac {3 d x}{2}\right )+735 C \sin \left (2 c+\frac {3 d x}{2}\right )+56 A \sin \left (2 c+\frac {5 d x}{2}\right )-1015 C \sin \left (2 c+\frac {5 d x}{2}\right )+105 C \sin \left (3 c+\frac {5 d x}{2}\right )+8 A \sin \left (3 c+\frac {7 d x}{2}\right )-160 C \sin \left (3 c+\frac {7 d x}{2}\right )\right )\right )}{210 a^4 d (A+2 C+A \cos (2 (c+d x))) (1+\sec (c+d x))^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.48, size = 147, normalized size = 0.91
method | result | size |
derivativedivides | \(\frac {\frac {A \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-\frac {11 C \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{7}-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) C}{7}-C \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {A \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-8 C \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+8 C \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-15 C \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d \,a^{4}}\) | \(147\) |
default | \(\frac {\frac {A \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-\frac {11 C \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{7}-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) C}{7}-C \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {A \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-8 C \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+8 C \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-15 C \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d \,a^{4}}\) | \(147\) |
risch | \(-\frac {2 i \left (105 C \,{\mathrm e}^{6 i \left (d x +c \right )}+735 C \,{\mathrm e}^{5 i \left (d x +c \right )}-140 A \,{\mathrm e}^{4 i \left (d x +c \right )}+2170 C \,{\mathrm e}^{4 i \left (d x +c \right )}-140 A \,{\mathrm e}^{3 i \left (d x +c \right )}+3430 C \,{\mathrm e}^{3 i \left (d x +c \right )}-168 A \,{\mathrm e}^{2 i \left (d x +c \right )}+2625 C \,{\mathrm e}^{2 i \left (d x +c \right )}-56 \,{\mathrm e}^{i \left (d x +c \right )} A +1015 C \,{\mathrm e}^{i \left (d x +c \right )}-8 A +160 C \right )}{105 d \,a^{4} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{7}}+\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) C}{a^{4} d}-\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) C}{a^{4} d}\) | \(194\) |
norman | \(\frac {\frac {\left (A -15 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a d}-\frac {\left (A +C \right ) \left (\tan ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{56 a d}+\frac {\left (13 A -15 C \right ) \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{280 a d}+\frac {\left (29 A -55 C \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{840 a d}-\frac {\left (47 A -1465 C \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{280 a d}-\frac {\left (101 A +605 C \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{840 a d}+\frac {\left (-1145 C +67 A \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{120 a d}-\frac {\left (-169 C +11 A \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 a d}}{\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{4} a^{3}}+\frac {C \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{a^{4} d}-\frac {C \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{a^{4} d}\) | \(263\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 228, normalized size = 1.42 \begin {gather*} -\frac {5 \, C {\left (\frac {\frac {315 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {77 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {21 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {3 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}}{a^{4}} - \frac {168 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}{a^{4}} + \frac {168 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )}{a^{4}}\right )} - \frac {A {\left (\frac {105 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {35 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {21 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {15 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}\right )}}{a^{4}}}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.88, size = 235, normalized size = 1.46 \begin {gather*} \frac {105 \, {\left (C \cos \left (d x + c\right )^{4} + 4 \, C \cos \left (d x + c\right )^{3} + 6 \, C \cos \left (d x + c\right )^{2} + 4 \, C \cos \left (d x + c\right ) + C\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) - 105 \, {\left (C \cos \left (d x + c\right )^{4} + 4 \, C \cos \left (d x + c\right )^{3} + 6 \, C \cos \left (d x + c\right )^{2} + 4 \, C \cos \left (d x + c\right ) + C\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (8 \, {\left (A - 20 \, C\right )} \cos \left (d x + c\right )^{3} + {\left (32 \, A - 535 \, C\right )} \cos \left (d x + c\right )^{2} + 4 \, {\left (13 \, A - 155 \, C\right )} \cos \left (d x + c\right ) + 13 \, A - 260 \, C\right )} \sin \left (d x + c\right )}{210 \, {\left (a^{4} d \cos \left (d x + c\right )^{4} + 4 \, a^{4} d \cos \left (d x + c\right )^{3} + 6 \, a^{4} d \cos \left (d x + c\right )^{2} + 4 \, a^{4} d \cos \left (d x + c\right ) + a^{4} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {A \sec ^{3}{\left (c + d x \right )}}{\sec ^{4}{\left (c + d x \right )} + 4 \sec ^{3}{\left (c + d x \right )} + 6 \sec ^{2}{\left (c + d x \right )} + 4 \sec {\left (c + d x \right )} + 1}\, dx + \int \frac {C \sec ^{5}{\left (c + d x \right )}}{\sec ^{4}{\left (c + d x \right )} + 4 \sec ^{3}{\left (c + d x \right )} + 6 \sec ^{2}{\left (c + d x \right )} + 4 \sec {\left (c + d x \right )} + 1}\, dx}{a^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.51, size = 182, normalized size = 1.13 \begin {gather*} \frac {\frac {840 \, C \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right )}{a^{4}} - \frac {840 \, C \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right )}{a^{4}} - \frac {15 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 15 \, C a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 21 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 105 \, C a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 35 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 385 \, C a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 105 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1575 \, C a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{28}}}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.57, size = 156, normalized size = 0.97 \begin {gather*} \frac {2\,C\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^4\,d}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {A+C}{8\,a^4}+\frac {C}{a^4}-\frac {2\,A-6\,C}{8\,a^4}\right )}{d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (\frac {A+C}{24\,a^4}+\frac {C}{6\,a^4}-\frac {2\,A-6\,C}{24\,a^4}\right )}{d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (\frac {A+C}{40\,a^4}+\frac {C}{10\,a^4}\right )}{d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,\left (A+C\right )}{56\,a^4\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________